﻿using System;
using System.Runtime.InteropServices;

namespace WindowsAPI.Hooks
{
    public partial class Hook
    {
        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        public static extern IntPtr SetWindowsHookEx(HookType Hook, HookProc CallBack, IntPtr Mod,
            uint ThreadId);

        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        public static extern IntPtr CallNextHookEx(IntPtr hWnd, int Code, IntPtr wParam, IntPtr lParam);

        [DllImport("user32.dll")]
        public static extern bool UnhookWindowsHookEx(IntPtr hWnd);
    }
}
